<div data-ng-init="formInit('gisbook', {
        sn:'cgisbook',
        keyField:'id',
        randomFields:['id'],
        pageSize:1000,
        queryFields:'id,bookname,bookextent'
    }) && loadData('gisbook');addRow('gisbook');">
    <div class="search">
        <h4 class="title">书签定位</h4>
        <div class="zs-form-tab">
            <form name="form" novalidate>
            <table width="100%">
                <tbody>
                    <tr>
                        <td class="right" width="25%">书签名称</td>
                        <td class="left" width="75%">
                            <input class="zs-input" type="text" ng-model="gisbook.editRow.bookname" required>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"> 
                            <input type="button" name="OK" value="保存" class="zs-btn" ng-disabled="form.$invalid" 
                            ng-click="formValidate(form) && bookSave('gisbook', gisbook.editRow) && addRow('gisbook')">
                        </td>
                    </tr>
                </tbody>
            </table>
            </form>
        </div>
        <div class="zs-data-tab">
            <table>
                <tbody>
                    <tr ng-repeat="r in gisbook.datas">
                        <td class="left">
                            <b class="zs-maptools-sq-del"><a ng-click="delEntity('gisbook', r)"></a></b>
                            <a ng-click="extentTo(r.bookextent)">{{r.bookname}}</a>
                        </td>
                    </tr>     
                </tbody>
            </table>
        </div>
    </div>
</div>